package com.hznu.stmanage.service;

import com.hznu.stmanage.entity.Manager;

/**
 * Created by J_Vino on 16/3/6.
 */
public interface ManagerService {

    int deleteByPrimaryKey(Long id);

    int insert(Manager record);

    int insertSelective(Manager record);

    Manager selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Manager record);

    int updateByPrimaryKey(Manager record);

    /**
     * 根据用户名查找管理员
     * @param username
     * @return
     */
    Manager findByUsername(String username);
}
